import request from '@/utils/request'

export function getHttp() {
  return request({
    url: '/http',
    method: 'get',
  })
}
export function putHttp(data) {
  return request({
    url: '/http',
    method: 'put',
    params: data
  })
}
export function addHttp(data) {
  return request({
    url: '/http',
    method: 'post',
    params: data
  })
}
export function deleteHttp(data) {
  return request({
    url: '/http',
    method: 'delete',
    params: data
  })
}
export function deleteGg(data) {
  return request({
    url: '/advertisement',
    method: 'delete',
    params: data
  })
}
export function putGg(data) {
  return request({
    url: '/advertisement',
    method: 'put',
    params: data
  })
}
export function addGg(data) {
  return request({
    url: '/advertisement',
    method: 'post',
    params: data
  })
}
export function getGg(httpid) {
  return request({
    url: `/advertisement/${httpid}`,
    method: 'get',
  })
}
export function deleteFoot(data) {
  return request({
    url: '/foot',
    method: 'delete',
    params: data
  })
}
export function putFoot(data) {
  return request({
    url: '/foot',
    method: 'put',
    params: data
  })
}
export function addFoot(data) {
  return request({
    url: '/foot',
    method: 'post',
    params: data
  })
}
export function getFoot(httpid) {
  return request({
    url: `/foot/${httpid}`,
    method: 'get',
  })
}


export function deleteIfon(data) {
  return request({
    url: '/info',
    method: 'delete',
    params: data
  })
}
export function putInfo(data) {
  return request({
    url: '/info',
    method: 'put',
    params: data
  })
}
export function addInfo(data) {
  return request({
    url: '/info',
    method: 'post',
    params: data
  })
}
export function getInfo(httpid) {
  return request({
    url: `/info/${httpid}`,
    method: 'get',
  })
}

export function upimg(data) {
  return request({
    url: '/upimg',
    method: 'post',
    params: data
  })
}